package com.imeth.cms;

import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

/**
 * Created by peter on 12/24/2015.
 */
public class Fragment {

    private Integer id;

    @NotBlank(message = "碎片名称不能为空")
    private String name;

    @NotBlank(message = "碎片描述不能为空")
    private String description;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
